/****************************************************
          File Name:10-3.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 23 Dec 2014 02:16:52 PM CST
*****************************************************/

#ifndef THIS_H_
#define THIS_H_
#include<iostream>

class golf
{
    private:
       // char fullname[40];
        std::string fullname;
        int handicap;
    public:
        //golf(char name[] = "nobody", int icap = 0);
        // using const to create tmp value of type 'string'
        golf(const std::string & name = "nonbody", int icap = 0);
        ~golf(){std::cout << "Bye" << std::endl;}

        //void setgolf(char name[], int icap);
        void setgolf(std::string & name, int icap);
        void sethandicap(int n);
        void showgolf(const golf & g) const;
};

#endif
